package zjy.android.radapter.exception;

import java.util.IllegalFormatFlagsException;

public class HttpReturnException extends IllegalFormatFlagsException {

    private final Object returnSource;

    public HttpReturnException(Object returnSource) {
        super("return code illegal format");
        this.returnSource = returnSource;
    }

    @SuppressWarnings("unchecked")
    public <T> T getReturnSource() {
        return (T) returnSource;
    }
}
